package com.qf.mprefer.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.mprefer.user.entity.User;


/**
 * <p>
 * 用户  服务类
 * </p>
 *
 * @author dong_
 * @since 2022-11-03
 */
public interface IUsersService extends IService<User> {

    /**
     * 注册用户
     * @param user
     * @return
     */
    User regist(User user);

    User loginBySend(User user);

    void saveUserToRedis(User user);

    User selectUserByUsername(User user);

    User modifyUser(User user);

    User modifyPassword(Integer userId, String oldPassword, String newPassword);

    User modifyPhone(Integer userId, String oldPhone, String newPhone);

}
